package com.qingcloud.adminbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingcloud.adminbackend.entity.sysfunction.SysFunction;
import com.qingcloud.adminbackend.entity.sysfunction.SysUserFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户权限关系表 Mapper 接口
 * </p>
 *
 * @author luozehua
 * @since 2018-12-26
 */
public interface SysUserFunctionMapper extends BaseMapper<SysUserFunction> {

    List<SysFunction> getUserFunction(@Param("userId") String userId);

    /**
     * 批量保存
     */
    void batchInsert(@Param("pojoList") List<SysUserFunction> userFunctionList);

}
